﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PortCommunicate.LogEntries
{
    
    public class LogEntry
    {
        private readonly RWType rWType;
        public LogEntry()
        {
            rWType = (RWType)Mediator.currentRWType;
        }
        public DateTime TimeStamp { get; set; }
        public string? Level { get; set; }
        public string? Logger { get; set; }
        public string? Message { get; set; }
        public string? Exception { get; set; }
        
        public override string ToString()
        {
            return string.Format("{0}-[{1}]-[{2}]:{3}", TimeStamp.ToString("yyyy-MM-dd HH:mm:ss"), rWType, Level, Message);
        }
    }
}
